<?php
namespace api\controllers;

use Yii;
use yii\rest\Controller;

class TestController extends Controller{

    public function actionTest(){
        echo Yii::t("errorCode","aaa");
    }
}